package com.icloud.article.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@ApiModel
@Setter
@Getter
public class ArticleHotDto {
    @ApiModelProperty(value = "帖子Id", required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long articleId;

    @ApiModelProperty(value = "时长,单位:小时", required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Integer duration;

    @ApiModelProperty(value = "热帖时间戳")
    private Long hotTime;
}
